Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to honor image's original colormap #4

Closed

Conversation

Lixivial
Copy link

I've inverted the logical conditional around whether the A button is pressed, because whites are being converted to black. I don't know if that was a conscious decision (haven't reviewed bin2c.py closely}, but inverting this conditional lookup will retain whites and black as the original image intended.

@shinyquagsire23
Copy link
Owner

Well, I did have some inverting logic in the bin2c.py, the way I figured it should be in the program though is if the bit is set ( & 1 << bit) -> draw black, which is what I'm doing there. So in this case I'd probably leave it as-is.

@Lixivial
Copy link
Author

Makes sense, and I did see that after I submitted this PR. Sorry to have wasted your time; should've looked first.

I'll submit a PR with adding an optional parameter to the converters to give the user the option to output an inverted or normal image.c to the bin2c and png2c converters. Should've done that in the first place. :)

@Lixivial Lixivial deleted the honor-image-colormap branch August 17, 2017 16:22
@Lixivial Lixivial restored the honor-image-colormap branch August 17, 2017 16:22
@Lixivial Lixivial deleted the honor-image-colormap branch August 18, 2017 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants